import React from 'react'
import { Cell, NavBar } from 'react-vant'
import '../css/Hwj_index.css'
import { createFromIconfontCN } from '@react-vant/icons'
import { useNavigate } from 'react-router-dom';
import { WapHomeO, OrdersO } from '@react-vant/icons';
const IconFont = createFromIconfontCN(
    '//at.alicdn.com/t/c/font_4695075_pl7cx9w2bje.js'
)
export default function Hwj_address() {
    let navigate = useNavigate()
    return (
        <div id='addressbox'>
            <NavBar
                title="常用地址"
                // leftText=""
                // rightText="按钮"
                onClickLeft={() => { navigate('/hwj_settings') }}
                onClickRight={() => Toast('按钮')}

            />

            <div className='conbox'>
                <div className="con_1">
                    <Cell title='家' onClick={()=>{navigate('/hwj_homeadd')}} icon={<WapHomeO color='grey' />} isLink label='描述信息' size='large' />
                </div>
                <div className="con_1">
                    <Cell title='公司' onClick={()=>{navigate('/hwj_gsadd')}} icon={<OrdersO color='grey' />} isLink label='描述信息' size='large' />
                </div>
            </div>
        </div>
    )
}
